package com.duixiang.lei.shangjia;
/*
商家   姓名 性别   地址  卖的货物
 */
public class Shangjia {
    private String name;
    private String gender;

    public Shangjia() {
    }

    public Shangjia(String name, String gender) {
        this.name = name;
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "Shangjia{" +
                "name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void add(String add){
        System.out.println("这家店位于:"+add);
    }
    public void cargo(){
        System.out.println("主营:零食" );
    }
}
